package model

type UserAddr struct {
	BaseModel   `gorm:"embedded"`
	UserId      uint   `json:"user_id" gorm:"user_id" form:"user_id"`
	Address     string `json:"address" gorm:"address" form:"address"  binding:"required"`
	Community   string `json:"community" gorm:"community" form:"community"  binding:"required"`
	BuildingNo  uint   `json:"building_no" gorm:"building_no" form:"building_no"  binding:"required"`
	UnitNo      uint   `json:"unit_no" gorm:"unit_no" form:"unit_no"  binding:"required"`
	HouseNumber uint   `json:"house_number" gorm:"house_number" form:"house_number"  binding:"required"`
	PhoneNumber string `json:"phone_number" gorm:"phone_number;size:11" form:"phone_number"  binding:"required"`
	Status      uint   `json:"status" gorm:"status" form:"status"`
}

/*func (u *UserAddr) GetTable() string {
	return "fb_user_addr"
}*/

/*func (u UserAddr) BeforeCreate(tx *gorm.DB) (err error) {
	u.CreateTime = time.Now().Unix()

}*/
